package model

import "RMS/app/shop/model/base"

type CategoryListReq struct {
	Id        *int    `form:"id" json:"id"`
	Name      *string `form:"item_name" json:"item_name"`
	PageIndex *int    `form:"page_index"`
	PageSize  *int    `form:"page_size"`
}

type CategoryListResp struct {
	Data  []map[string]interface{} `json:"data"`
	Total int                      `json:"total"`
	base.Resp
}

type AddCategoryReq struct {
	Name        string `json:"name,required"`
	Description string `json:"description,required"`
}

type AddCategoryResp struct {
	base.Resp
}

type UpdateCategoryReq struct {
	Id          int     `json:"id,required"`
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type UpdateCategoryResp struct {
	base.Resp
}

type DeleteCategoryReq struct {
	Id int `json:"id,required"`
}

type DeleteCategoryResp struct {
	base.Resp
}
